﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.IO;

namespace SIMA.Core.Converters
{
    public static class ImageToByteArray
    {
        public static byte[] ConvertToByteArray(string _fotoURL)
        {
            FileStream fs = new FileStream(_fotoURL, FileMode.Open, FileAccess.Read);
            byte[] _data = new byte[fs.Length];
            fs.Read(_data, 0, System.Convert.ToInt32(fs.Length));
            fs.Close();
            return _data;
        }
    }
}
